package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbInput;
import com.cykj.v_m_sprintboot.bean.TbWarehouseListInf;
import com.cykj.v_m_sprintboot.mapper.TbInputMapper;
import com.cykj.v_m_sprintboot.service.TbInputService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbInputServiceImpl implements TbInputService {
    @Autowired
    private TbInputMapper tbInputMapper;
    @Override
    public List<TbInput> getSupplier(int supplierStateId) {
        return tbInputMapper.getSupplier(supplierStateId);
    }

    @Override
    public String getGoodsType(int supplierId) {
        return tbInputMapper.getGoodsType(supplierId);
    }

    @Override
    public List<TbInput> getGoodsName(String goodsListType) {
        return tbInputMapper.getGoodsName(goodsListType);
    }


    @Override
    public List<TbInput> getWarehouseName(int warehouseStateId) {
        return tbInputMapper.getWarehouseName(warehouseStateId);
    }

    @Override
    public boolean addInputData(TbInput tbInput) {
        return tbInputMapper.addInputData(tbInput);
    }
    @Override
    public boolean addGoods(TbInput tbInput) {
        return tbInputMapper.addGoods(tbInput);
    }

    @Override
    public TbInput selectAddGoodsId(TbInput tbInput) {
        return tbInputMapper.selectAddGoodsId(tbInput);
    }

    @Override
    public boolean updateWarehouseNumState(int warehouseId, int warehouseNum) {
        return tbInputMapper.updateWarehouseNumState(warehouseId,warehouseNum);
    }

    @Override
    public int selectWarehouse(int warehouseId) {
        return tbInputMapper.selectWarehouse(warehouseId);
    }

    @Override
    public String getGoodsTypeByGoodsListId(int goodsListId) {
        return tbInputMapper.getGoodsTypeByGoodsListId(goodsListId);
    }

    @Override
    public List<TbInput> getWarehousing(TbInput tbInput, RowBounds row) {
        return tbInputMapper.getWarehousing(tbInput,row);
    }

    @Override
    public boolean updateWarehouseModifyTime(int warehouseId, String modifyTime) {
        return tbInputMapper.updateWarehouseModifyTime(warehouseId,modifyTime);
    }

    @Override
    public int warehousingCount(TbInput tbInput) {
        return tbInputMapper.warehousingCount(tbInput);
    }

    @Override
    public boolean delInput(int inputId, int stateListId) {
        return tbInputMapper.delInput(inputId,stateListId);
    }

    @Override
    public TbWarehouseListInf selectGoodsInf(TbInput tbInput) {
        return tbInputMapper.selectGoodsInf(tbInput);
    }

    @Override
    public boolean addTbWarehouseListInf(TbInput tbInput) {
        return tbInputMapper.addTbWarehouseListInf(tbInput);
    }

    @Override
    public double countTbWarehouseListInf(TbInput tbInput) {
        return tbInputMapper.countTbWarehouseListInf(tbInput);
    }

    @Override
    public boolean updateTbWarehouseListInfNum(TbInput tbInput) {
        return tbInputMapper.updateTbWarehouseListInfNum(tbInput);
    }


}
